ShortPixel\Controller\Optimizer\OptimizeAiController B

Total Complexity 95
Dependencies 10
Dependents 6
Total lines 877
Lines of code 468
Logical lines of code 274
Comment lines 242
Methods 19
Properties 0

Methods 19

Method Rating Maintainability Complexity Lines of code
handleReplace()
A
43 12 47
replaceFiles()
A
39 10 68
enqueueItem()
A
42 9 59
formatGenerated()
A
50 10 30
replaceMetaData()
A
52 10 24
getAltData()
A
43 7 50
handleAPIResult()
A
46 7 41
formatResultData()
A
54 8 21
replaceImageAttributes()
S
54 4 21
isAiEnabled()
S
63 3 10
isAutoAiEnabled()
S
64 3 10
processTextResult()
S
66 3 8
checkItem()
S
60 2 14
HandleSuccess()
S
51 1 27
undoAltData()
S
57 1 17
HandleItemError()
S
69 2 8
__construct()
S
73 1 5
sendToProcessing()
S
80 1 3
fetchImageMatches()
S
72 1 5